package com.wzh.glsc.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wzh.common.utils.PageUtils;
import com.wzh.glsc.product.entity.CategoryEntity;
import com.wzh.glsc.product.vo.CategoryLeve2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author lcm
 * @email 1291529969@gmail.com
 * @date 2022-03-16 19:32:04
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    //商品多级菜单
    List<CategoryEntity> listWithTree();

    //根据树菜单id删除
    void removeByMenuIds(List<Long> catIds);

    //查出catelogId的详细路径
    Long[] getCatelogPathBycatId(Long catelogId);

    void updateCascade(CategoryEntity category);

    List<CategoryEntity> getLevel1Categorys();

    Map<String, List<CategoryLeve2Vo>> getCategoryJson();
}
